<template>
  <el-button color="#2AAB1F" type="primary" @click="onImportClick">
    <img src="@/assets/img/upload/daoru.png" class="h-[16px] mr-5px transform w-[16px] rotate-180" alt="" /> 导入
  </el-button>
  <importBox
    ref="importBox"
    v-model="importBoxVisible"
    :isShowOperateButtons="true"
    :typeLabel="typeLabel"
    @close-importBox="onSeachClick"
  ></importBox>
</template>

<script setup lang="ts">
import { ref } from 'vue'

let importBoxVisible = ref(false)
let typeLabel = ref('地质灾害隐患调查')

// 上传
const onImportClick = () => {
  importBoxVisible.value = true
}

// 上传后的处理
const onSeachClick = () => {
  reFindTableList() // 查询更新
}

// 页面查询
const reFindTableList = () => {}
</script>
